package staticproxy;

/**
 * 中间商
 */
public class Middleman implements IBuy{
    NormalPerson normalPerson;

    public Middleman(NormalPerson normalPerson) {
        this.normalPerson = normalPerson;
    }

    @Override
    public void buy() {
        System.out.println("代理介入。。。");
        normalPerson.buy();
        System.out.println("代理介入结束");
    }
}
